package com.zhanghu.hibernate.service;

import com.zhanghu.hibernate.entity.ZkUser;
import com.zhanghu.hibernate.repository.ZkUserRepository;
import org.hibernate.criterion.Example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 9:35 2020/1/7
 * @modified by:
 */
@Service
public class ZkUserServiceImpl implements ZkUserService {
    @Autowired
    ZkUserRepository zkUserRepository;

    @Override
    public List<ZkUser> findAll() {

        return zkUserRepository.findAll();
    }

    @Override
    public ZkUser save(ZkUser user) {

        return zkUserRepository.save(user);
    }
}
